﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Willow.Model;

namespace Willow.IService.Auth
{
    public interface IRoleService : IService<Auth_Role>
    {
        /// <summary>
        /// 分配角色
        /// </summary>
        /// <param name="userId">The user identifier.</param>
        /// <param name="roleIds">The role ids.</param>
        void DistributeRole(Guid userId, Guid[] roleIds);
        /// <summary>
        /// 提交角色
        /// </summary>
        /// <param name="lstInsert">The LST insert.</param>
        /// <param name="lstDelete">The LST delete.</param>
        /// <param name="lstUpdate">The LST update.</param>
        void Submit(IEnumerable<Auth_Role> lstInsert, IEnumerable<Auth_Role> lstDelete, IEnumerable<Auth_Role> lstUpdate);
    }
}
